#ifndef _PLATFORM_H
#define _PLATFORM_H

#include <stdint.h>
#include <assert.h>
#include "Localstm32g030xx.h"                  // Device header
#include "main.h"
typedef union
{
    uint8_t byte;
    struct
    {
        uint8_t B0 : 1;
        uint8_t B1 : 1;
        uint8_t B2 : 1;    
        uint8_t B3 : 1;
        uint8_t B4 : 1;        
        uint8_t B5 : 1;        
        uint8_t B6 : 1;
        uint8_t B7 : 1;        
    }BITS;
}UNION_U8;

#define RCU_MCO_MODE  (0)

#define DEBUG          (0)
#define FREE_MODBUS    (1)
#define TIM16_USED_BY  (DEBUG)

#define START_UP_DELAY_TIME (500)
#define DISPLAY_FRESH_TIME  (10)

#endif

